Error processing SSI file
LEADTOOLS Leadtools.Documents (Leadtools.Documents assembly)

Show in webframe

UploadDocument(Uri,Byte[],Int32,Int32) Method






The temporary document URL. This must be the same value returned from BeginUpload and cannot be null.
Current chunk of data. The factory will length number of bytes from this chunk starting at offset.
Offset into data where to data begins.
Number of bytes to upload.
Upload a chunk of the document to the global cache.
Syntax
public static void UploadDocument( 
   Uri uri,
   byte[] data,
   int offset,
   int length
)
'Declaration
 
Public Overloads Shared Sub UploadDocument( _
   ByVal uri As Uri, _
   ByVal data() As Byte, _
   ByVal offset As Integer, _
   ByVal length As Integer _
) 
'Usage
 
Dim uri As Uri
Dim data() As Byte
Dim offset As Integer
Dim length As Integer
 
DocumentFactory.UploadDocument(uri, data, offset, length)
public static void uploadDocument(URI uri, byte[] data, int offset, int length)
            
public:
static void UploadDocument( 
   Uri^ uri,
   array<byte>^ data,
   int offset,
   int length
) 

Parameters

uri
The temporary document URL. This must be the same value returned from BeginUpload and cannot be null.
data
Current chunk of data. The factory will length number of bytes from this chunk starting at offset.
offset
Offset into data where to data begins.
length
Number of bytes to upload.
Remarks

This method will call UploadDocument(DocumentFactory.Cache, ...) and therefore will throw an exception if Cache was not setup.

BeginUpload, UploadDocument and AbortUploadDocument can be used to upload a document in chunks to the cache used by this DocumentFactory. After the document is uploaded, you can use LoadFromUri to create a Document object from the data.

Refer to Uploading Using the Documents Library for detailed information on how to use these methods and the various options used.

Example

For an example, refer to BeginUpload

Requirements

Target Platforms

See Also

Reference

DocumentFactory Class
DocumentFactory Members
Overload List

Error processing SSI file
   Leadtools.Documents requires a Document or Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features